class NewsTitle {
    private int id;
    private String titleName;
    private String reporter;

    public NewsTitle(int id, String titleName, String reporter) {
//        super();
        this.id = id;
        this.titleName = titleName;
        this.reporter = reporter;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitleName() {
        return titleName;
    }

    public void setTitleName(String titleName) {
        this.titleName = titleName;
    }

    public String getReporter() {
        return reporter;
    }

    public void setReporter(String reporter) {
        this.reporter = reporter;
    }

    @Override
    public String toString() {
        return "近日新闻：" +
                "第" + id +
                "则新闻报道的是《" + titleName +
                "》,记者是" + reporter
                + "\n";

    }
}
